<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <js file="__PUBLIC__/Js/jquery-1.7.2.min.js"/>
    <!--<js file="__PUBLIC__/Js/search.js"/>-->
    <link rel="stylesheet" href="__PUBLIC__/Css/public.css"/>
</head>
<body>
<a href="{:U('Admin/Excel/see')}">返回</a>
<hr/>
<p>
    <form action="{:U('Admin/Excel/down')}" method="post">
    <span style="color: #0000ff;">{$s_y}</span>
    <input type="hidden" value="{$s_y}" name="school_year">
    <span>学年</span>
    <span>第</span>
    <span style="color: fuchsia;">{$term}</span>
    <input type="hidden" value="{$term}" name="term">
    <span>学期</span>
    <span style="color: red;">{$class}</span>
    <input type="hidden" value="{$class}" name="class">
    <input type="submit" value="导出Excel">
</form>
</p>


<table class="table">
    <tr>
        <th>学籍号</th>
        <th>考号</th>
        <th>姓名</th>
        <foreach name="all_s_n" item="vv">
            <th>{$vv.subject}</th>
        </foreach>
        <th>平均分</th>
        <th>总分</th>
        <th>合格科目数</th>
        <th>班级等级</th>
        <th>全校等级</th>
        <th>操作</th>

    </tr>
    <foreach name="all_info" item="v">
        <tr>
            <td>{$v.student_number}</td>
            <td>{$v.test_number}</td>
            <td>{$v.student_name}</td>
            <php>$i=0;</php>
            <foreach name="all_s_n" item="vv">
            <td>{$v.$i}</td>
                <php>$i++;</php>
            </foreach>
            <td>{$v.average}</td>
            <td>{$v.total_points}</td>
            <td>{$v.standard}</td>
            <td>{$v.class_order}</td>
            <td>{$v.schol_order}</td>
            <td><a href="{:U('Admin/Excel/edit',array('test_number'=>$v['test_number'],
            'average'=>$v['average'],'total_points'=>$v['total_points'],'standard'=>$v['standard'],
            'class_order'=>$v['class_order'],'schol_order'=>$v['schol_order']))}">编辑</a></td>
        </tr>
    </foreach>
</table>
</body>
</html>